package com.woparker.kiosk.model.impl;

import com.woparker.kiosk.model.VehicleSearchModel;

public class VehicleSearchModelImpl implements VehicleSearchModel {

    @Override
    public void searchVehicles(String plateNo, VehicleSearchModel.SearchCallback callback) {
//        Request request = new Request();
//        request.setKind(MessageKind.REQUEST);
//        request.setCommand(MessageCmd.QUERY_VEHICLE_LOC);
//        request.setDeviceKind(DeviceKind.MASTER);
//        request.setDeviceId(NativeProxy.getInstance().getDeviceId());
//        request.setMessageId(MessageIdUtils.getInstance().next(Endpoint.LOCATOR_CLIENT));
//
//        VehicleLocQuery event = new VehicleLocQuery();
//        event.setPlateNo(null);
//        event.setSlotNo(null);
//        event.setFromEntryTime(null);
//        event.setToEntryTime(null);
//        request.setPayload(event);
//
//        Result result = LocatorClientImpl.getInstance().execute(request);

        if (true) {
            callback.onSuccess(null);
        } else {
            callback.onError("No vehicles found.");
        }
    }
}
